package zms.roya.util.collection.queue;

import java.util.PriorityQueue;

public class Test1 {
 
	public static void main(String[] args) {
	 
		 PriorityQueue<String> pq=new PriorityQueue<String>();
		 
		 pq.add("zmd");
		 pq.add("ivy");
		 pq.add("993");
		  
		 
		 while (pq.poll()!=null)
		 {
		  System.out.println(pq.poll());
		 }
		 

	}

}
